
package com.sf.osms.dep.processor.model;

import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.sf.osms.dep.domain.RouterProblemRecord;
import com.sf.osms.dep.domain.RouterTmp;

public class EventModel <T,E>{
	
	//记录从文件中解析出来的每行的原始数据
	private List<T> recordList = new ArrayList<T>(); 
	
	//将每条原始的数据转换成DB中的数据模型
	private List<E> correctRouter = new ArrayList<E>();
	
	//解析出错的路由信息
	private List<RouterProblemRecord> errorEventRecord = new ArrayList<RouterProblemRecord>();
	
	//解析的文件
	private File file;
	
	//需要进行handover的路由信息
	private Set<RouterTmp> needHandleRouter = new HashSet<RouterTmp>();
	
	//有问题的handover
	private List<E> problemHandoverList = new ArrayList<E>();
	
	private Integer lineNum = 0;
	
	//解析时读取的行数
	private Integer parsingLineNum = 0;
	
	public Integer getParsingLineNum() {
		return parsingLineNum;
	}

	public void setParsingLineNum(Integer parsingLineNum) {
		this.parsingLineNum = parsingLineNum;
	}

	public List<T> getRecordList() {
		return recordList;
	}

	public void setRecordList(List<T> recordList) {
		this.recordList = recordList;
	}

	public List<E> getCorrectRouter() {
		return correctRouter;
	}

	public void setCorrectRouter(List<E> correctRouter) {
		this.correctRouter = correctRouter;
	}

	public List<RouterProblemRecord> getErrorEventRecord() {
		return errorEventRecord;
	}

	public void setErrorEventRecord(List<RouterProblemRecord> errorEventRecord) {
		this.errorEventRecord = errorEventRecord;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public Set<RouterTmp> getNeedHandleRouter() {
		return needHandleRouter;
	}

	public void setNeedHandleRouter(Set<RouterTmp> needHandleRouter) {
		this.needHandleRouter = needHandleRouter;
	}

	public Integer getLineNum() {
		return lineNum;
	}

	public void setLineNum(Integer lineNum) {
		this.lineNum = lineNum;
	}

	public List<E> getProblemHandoverList() {
		return problemHandoverList;
	}

	public void setProblemHandoverList(List<E> problemHandoverList) {
		this.problemHandoverList = problemHandoverList;
	}
	
}
